home *** CD-ROM | disk | FTP | other *** search
- _START move.l a0,_arg
- clr.b (-1,a0,d0.w)
- move.l $4.w,a6
- lea (DOSName,pc),a1
- moveq #37,d0
- jsr (-552,a6) ; OpenLibrary()
- move.l d0,_DOSBase
- beq.s .FINISH
-
- xref _main
- jsr _main ; a6 is stored
- move.l d0,d2
-
- move.l _DOSBase,a1
- jsr (-414,a6) ; CloseLibrary()
- .FINISH move.l d2,d0
- rts
- ****************************************
- xdef _DOSBase
- xdef _arg
- ****************************************
- _DOSBase dc.l 0
- _arg dc.l 0
- ****************************************
- DOSName dc.b 'dos.library',0
-